<?php
$db['addr_card']    = array (
    'columns'           => array (
         'id'     => array (
            'type'      => 'number',
             'required' => true,
            'pkey' => true,
            'extra' => 'auto_increment',
            'label'     => app::get('b2c')->_('身份证id'),
            'width'     => 80,
            'editable'  => false,
        ),
        'member_id'     => array (
            'type'      => 'table:members',
            'required'  => true,
            'label'     => app::get('b2c')->_('会员ID'),
            'width'     => 80,
            'default'   => 0,
            'editable'  => false,
        ),
        'card_num'     => array (
            'type'      => 'varchar(50)',
            'label'     => app::get('b2c')->_('身份证号码'),
            'width'     => 80,
            
        ),
        'real_name'       => array (
            'type'      => 'varchar(30)',           
            'label'     => app::get('b2c')->_('真实姓名'),
            'width'     => 70,
    
        ),
      'forward' =>
            array (
              'type' => 'varchar(255)',
              'comment' => app::get('b2c')->_('身份证正面图片'),
              'editable' => false,
              'label' => app::get('b2c')->_('身份证正面图片'),
             'in_list' => false,
              'default_in_list' => false,
            ),
      'back' =>
            array (
              'type' => 'varchar(255)',
              'comment' => app::get('b2c')->_('身份证反面图片'),
              'editable' => false,
              'label' => app::get('b2c')->_('身份证反面图片'),
             'in_list' => false,
              'default_in_list' => false,
            ),
       
        
         'create_time'       => array (
            'type'      => 'time',           
            'label'     => app::get('b2c')->_('上传时间'),
            'width'     => 70,    
        ),
        'addr_id'     => array (
            'type'      => 'table:members',
            'required'  => true,
            'label'     => app::get('b2c')->_('地址ID'),
            'width'     => 80,
            'default'   => 0,
            'editable'  => false,
        ),
    ),
    'index'  => array (
        'member_id' => array (
            'columns'   => array (
                0   => 'member_id',
            ),
        ),
    ),
    'engine' => 'innodb',
    'version'=>'$Rev: 123161524 $',
    'comment' => app::get('b2c')->_('身份证列表'),
);